//
//  HomePageModel.swift
//  ListenFM
//
//  Created by 胡定锋Mac on 2017/8/9.
//  Copyright © 2017年 胡定锋. All rights reserved.
//

import UIKit

import HandyJSON

class HomePageModel: HandyJSON {

    var code = ""
    var data:HomeDataModel!
    
    required init() {}
}


class HomeDataModel: HandyJSON {
    
    var category:[categorySubModel] = []
    var diantai:[diantaiSubModel] = []
    var hotfm:[hotfmSubModel] = []
    var newfm:[newfmSubModel] = []
    var newlesson:[newlessonSubModel] = []
    var tuijian:[tuijianSubModel] = []

    required init() {}
}


class categorySubModel: HandyJSON {
    
    var cover = ""
    var flag = ""
    var id = ""
    var name = ""
    var sort = ""
    
    required init() {}
}

class diantaiSubModel: HandyJSON {
    
    var content = ""
    var cover = ""
    var favnum = "";
    var fmnum = "";
    var id = "";
    var title = "";
//    var user =                 {
//    avatar = "http://ossimg.xinli001.com/20170712/706593f2f5281b2335d261fa273a9438.jpg!80";
//    id = 613186;
//    nickname = "\U5170\U742a";
//    phone = "<null>";
//    username = "806676547@qq.com";
//    };
    var user_id = "";
    var viewnum = "";
    
    required init() {}
    
}

class hotfmSubModel: HandyJSON {
    
    var absolute_url = ""
    var background = "";
    var cover = ""
    var diantai:diantaiSubModel = diantaiSubModel.init()
    var favnum = ""
    var id = ""
    var is_teacher = ""
    var object_id = ""
    var speak = ""
    var status = ""
    var title = ""
    var url = ""
    var url_list:NSArray = []
    var viewnum = ""
    
    required init() {}
    
}

class newfmSubModel: HandyJSON {
    
    var absolute_url = ""
    var background = "";
    var cover = ""
    var diantai:diantaiSubModel = diantaiSubModel.init()
    var favnum = ""
    var id = ""
    var is_teacher = ""
    var object_id = ""
    var speak = ""
    var status = ""
    var title = ""
    var url = ""
    var url_list:NSArray = []
    var viewnum = ""
    
    required init() {}
    
}
class newlessonSubModel: HandyJSON {
    
    var absolute_url = ""
    var background = "";
    var cover = ""
    var diantai:diantaiSubModel = diantaiSubModel.init()
    var favnum = ""
    var id = ""
    var is_teacher = ""
    var object_id = ""
    var speak = ""
    var status = ""
    var title = ""
    var url = ""
    var url_list:NSArray = []
    var viewnum = ""
    
    required init() {}
    
}

class tuijianSubModel: HandyJSON {
    
    var type = ""
    var cover = ""
    var value = "";
    var sort = "";
    var id = "";
    var title = "";
    required init() {}
    
}
